package com.threeox.ormlibrary;

import android.app.Application;

import com.threeox.ormlibrary.db.OrmDatabaseManager;

/** 
 *
 * @ClassName: DBApplcation
 *
 * @Description: (数据库Application)
 *
 * @author 赵屈犇
 *
 * @date 创建时间:2016/12/16 15:50 
 * 
 * @version 1.0
 */
public class DBApplcation extends Application {

	public static DBApplcation mInstance;

	@Override
	public void onCreate() {
		super.onCreate();
		mInstance = this;
        OrmDatabaseManager db = OrmDatabaseManager.getInstance();
        if (db != null) {
			db.getWritableDatabase();
		}
	}

	public static DBApplcation getInstance() {
		return mInstance;
	}

}
